/* Copyright (c) 2004-2023 Peigen.info. All rights reserved. */
package info.peigen.hotpot.manage.core.service.order;

import info.peigen.hotpot.common.core.annotation.Comment;
import info.peigen.hotpot.common.service.base.ServiceOrderBase;
import info.peigen.hotpot.manage.core.enums.DeviceType;
import jakarta.validation.constraints.NotEmpty;
import lombok.*;
import lombok.experimental.Accessors;
import lombok.experimental.FieldDefaults;
import lombok.experimental.SuperBuilder;

/**
 * <b>(LoginOrder)</b>
 *
 * @author Peigen
 * @version 1.0.0
 * @since 2024/6/11
 */
@EqualsAndHashCode(callSuper = true)
@SuperBuilder
@Data
@NoArgsConstructor
@AllArgsConstructor
@FieldDefaults(level = AccessLevel.PRIVATE)
@Accessors(chain = true)
public class LoginOrder extends ServiceOrderBase {
    @Comment(value = "账号")
    @NotEmpty(message = "账号不能为空")
    String     loginName;
    @Comment(value = "密码")
    @NotEmpty(message = "密码不能为空")
    String     password;
    @Comment(value = "设备")
    @Builder.Default
    DeviceType deviceType = DeviceType.PC;
    @Comment(value = "验证码")
    String     validCode;
    @Comment(value = "验证码请求号")
    String     validCodeReqNo;
}
